﻿<UserControl x:Class="Techdays2013.Controls.Tile"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">
    
    <Button x:Name="LayoutRoot" Click="LayoutRoot_Click_1" >
            
        <Button.Template>
            <ControlTemplate TargetType="Button">
                <ContentPresenter></ContentPresenter>
            </ControlTemplate>
        </Button.Template>
            
        <Border Grid.Column="0" Height="173" Background="{Binding Background}" Margin="6">

            <StackPanel VerticalAlignment="Center">
                <Image Width="128" Source="{Binding IconSource}"></Image>
                <TextBlock HorizontalAlignment="Center" Margin="0,-18,0,12" Text="{Binding Text}"></TextBlock>
            </StackPanel>

        </Border>
    </Button>

</UserControl>